/* 
 * File:   MutexScopeLocker.cpp
 * Author: maximiliano
 * 
 * Created on May 22, 2013, 10:00 AM
 */

#include "common_MutexScopeLocker.h"
using namespace TP;

MutexScopeLocker::MutexScopeLocker(Mutex& pMutex):_mutex(pMutex) {
    _mutex.lock();

}

MutexScopeLocker::~MutexScopeLocker() {
    _mutex.unlock();
}

